package cn.gcBlock.service;

import cn.gcBlock.po.BlockCurrency;
import cn.gcBlock.dto.BlockCurrencyDTO;
import cn.gcBlock.dto.BlockCurrencyQueryCriteria;
import org.springframework.data.domain.Pageable;

/**
* @author jie
* @date 2019-08-22
*/
//@CacheConfig(cacheNames = "blockCurrency")
public interface BlockCurrencyService {

/**
* queryAll 分页
* @param criteria
* @param pageable
* @return
*/
//@Cacheable(keyGenerator = "keyGenerator")
Object queryAll(BlockCurrencyQueryCriteria criteria, Pageable pageable);

/**
* queryAll 不分页
* @param criteria
* @return
*/
//@Cacheable(keyGenerator = "keyGenerator")
public Object queryAll(BlockCurrencyQueryCriteria criteria);

/**
* findById
* @param id
* @return
*/
//@Cacheable(key = "#p0")
BlockCurrencyDTO findById(int id);

/**
* create
* @param resources
* @return
*/
//@CacheEvict(allEntries = true)
BlockCurrencyDTO create(BlockCurrency resources);

/**
* delete
* @param id
*/
//@CacheEvict(allEntries = true)
void delete(int id);
}